/* PhotoFlow - animated image viewer for mobile devices
 *
 * Copyright (C) 2008 Ariya Hidayat (ariya.hidayat@gmail.com)
 * Copyright (C) 2007 Ariya Hidayat (ariya.hidayat@gmail.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this library; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA
 *
 */

#ifndef GLOBAL_H
#define GLOBAL_H

#include <qglobal.h>

// check for Qt 2, Qt 3, Qt 4
#if QT_VERSION >= 0x040000
#define PHOTOFLOW_QT4
#elif QT_VERSION >= 0x030000
#define PHOTOFLOW_QT3
#elif QT_VERSION >= 235
#define PHOTOFLOW_QT2
#else
#error PhotoFlow requires Qt 2, Qt 3 or Qt 4
#endif

// if globally Qt is compiled without thread support
#if defined(PHOTOFLOW_QT3) || defined(PHOTOFLOW_QT2)
#ifndef QT_THREAD_SUPPORT
#define PHOTOFLOW_NOTHREAD
#warning PhotoFlow is built without threaded image handling
#endif
#endif

#endif // GLOBAL_H

